﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LayuiMvc.DataEntity.DataEntity
{
    /// <summary>
    /// 文件实体类
    /// </summary>
    [Table("File")]
    public class FileEntity
    {
        /// <summary>
        /// 文件ID
        /// </summary>
        [Key]
        public int FileId { get; set; }

        /// <summary>
        /// 关联GUID
        /// </summary>
        public Guid RelationGuid { get; set; }

        /// <summary>
        /// 原始文件名称
        /// </summary>
        public string OriginalFileName { get; set; }

        /// <summary>
        /// 保存文件名称
        /// </summary>
        public string SaveFileName { get; set; }

        /// <summary>
        /// 相对保存路径
        /// </summary>
        public string RelativeSavePath { get; set; }

        /// <summary>
        /// 保存路径
        /// </summary>
        public string SavePath { get; set; }

        /// <summary>
        /// 文件类型
        /// </summary>
        public string FileType { get; set; }

        /// <summary>
        /// 上传时间
        /// </summary>
        public DateTime UploadTime { get; set; }

        /// <summary>
        /// 文件大小
        /// </summary>
        public int FileSize { get; set; }

        /// <summary>
        /// 文件标识
        /// </summary>
        public string FileTag { get; set; }
    }
}
